#include <iostream>
#include <string>

/*类*/
class Student
{
public:
    /*成员函数（方法）*/
    void SetName(std::string name);

    void SetAge(int age);

    void show();

private:
    /*成员变量（属性）*/
    std::string m_name;
    int m_age;
};

void Student::SetName(std::string name)
{
    m_name = name;
}

void Student::SetAge(int age)
{
    m_age = age;
}

void Student::show()
{
    std::cout << "学生姓名：" << m_name << " 学生年龄：" << m_age << std::endl;
}

struct Test
{
public:
    void SetA(int a)
    {
        m_a = a;
    }
    void show()
    {
        std::cout << " a = " << m_a << std::endl;
    }

private:
    int m_a;
};

int main()
{
    Student s;
    s.SetName("zhangsan");
    s.SetAge(10);
    s.show();

    // Test t;
    // t.SetA(10);
    // t.show();

    return 0;
}